<?php require_once 'common/header.php';?>

<div id="middle" class="register">
<div style="margin:6px auto; width:950px; clear:both;"></div>
<div style="width:250px; float:left; padding-left:10px;">
<?php require_once 'common/left.php';?>
</div>

<div style="width:650px; float:right; padding-right:20px;">

<?php if($form_data->SummberCamp):?>
	<h2>夏令营报名</h2>
<table width="100%" class="tableClass"  border="1" cellpadding="0" cellspacing="1">
  <tr>
    <th width="100">年级</th>
    <th width="300">说明</th>
    <th >报名</th>
  </tr>
 <?php  foreach ($form_data->SummberCamp as $key=>$value):?>
  <tr>
    <td><?php echo $value['GradeName']?></td>
    <td>&nbsp;<?php echo $value['Description']?></td>
    <td>
    <?php if($value['FirstNumber'] <= $value['FirstRegistedNumber']){ echo "第一期报名";}else{ echo "<a href=\"".siteUrl('registe/camp?Channel=1&GradeId='.$value['GradeId'].'&GradeType=1')."\">第一期报名</a>";}?>
    <?php if($value['SecondNumber'] <= $value['SecondRegisterdNumber']){ echo "第二期报名";}else{ echo "<a href=\"".siteUrl('registe/camp?Channel=1&GradeId='.$value['GradeId'].'&GradeType=2')."\">第二期报名</a>";}?>
    <?php if($value['FirstNumber'] <= $value['FirstRegistedNumber']||$value['SecondNumber'] <= $value['SecondRegisterdNumber']){ echo "两期连报";}else{ echo "<a href=\"".siteUrl('registe/camp?Channel=1&GradeId='.$value['GradeId'].'&GradeType=3')."\">两期连报</a>";}?>
    </td>
  </tr>
  <?php endforeach;?>
</table>
<br>
<?php endif;?>


<?php if($form_data->WinterCamp):?>
	<h2>冬令营报名</h2>
<table width="100%" class="tableClass"  border="1" cellpadding="0" cellspacing="1">
  <tr>
    <th width="100">年级</th>
    <th width="300">说明</th>
    <th >报名</th>
  </tr>
 <?php  foreach ($form_data->WinterCamp as $key=>$value):?>
  <tr>
    <td><?php echo $value['GradeName']?></td>
    <td>&nbsp;<?php echo $value['Description']?></td>
    <td>
    <?php if($value['FirstNumber'] <= $value['FirstRegistedNumber']){ echo "报名";}else{ echo "<a href=\"".siteUrl('registe/camp?Channel=1&GradeId='.$value['GradeId'].'&GradeType=1')."\">报名</a>";}?>
    </td>
  </tr>
  <?php endforeach;?>
</table>
<br>
<?php endif;?>


<?php if($form_data->FullTime):?>
		<h2>国谊学校入学报名</h2>
<table width="100%" class="tableClass"  border="1" cellpadding="0" cellspacing="1">
  <tr>
    <th width="100">年级</th>
    <th width="300">说明</th>
    <th >报名</th>
  </tr>
 <?php  foreach ($form_data->FullTime as $key=>$value):?>
  <tr>
    <td><?php echo $value['GradeName']?></td>
    <td>&nbsp;<?php echo $value['Description']?></td>
    <td>
    <?php if($value['Number'] <= $value['RegistedNumber']){ echo "报名";}else{ echo "<a href=\"".siteUrl('registe/fulltime?Channel=3&GradeId='.$value['GradeId'].'')."\">报名</a>";}?>
    </td>
  </tr>
  <?php endforeach;?>
</table>
<br>
<?php endif;?>

<?php if($form_data->Lotus):?>
		<h2>莲花书院入学报名</h2>
<table width="100%" class="tableClass"  border="1" cellpadding="0" cellspacing="1">
  <tr>
    <th width="100">年级</th>
    <th width="300">说明</th>
    <th >报名</th>
  </tr>
 <?php  foreach ($form_data->Lotus as $key=>$value):?>
  <tr>
    <td><?php echo $value['GradeName']?></td>
    <td>&nbsp;<?php echo $value['Description']?></td>
    <td>
    <?php if($value['Number'] <= $value['RegistedNumber']){ echo "报名";}else{ echo "<a href=\"".siteUrl('registe/lotus?Channel=4&GradeId='.$value['GradeId'].'')."\">报名</a>";}?>
    </td>
  </tr>
  <?php endforeach;?>
</table>
<br>
<?php endif;?>

</div>	
</div>
<?php require_once 'common/footer.php';?>